package org.dromara.manu.domain.bo;

import org.dromara.manu.domain.ManuMaterialCharaTemp;
import org.dromara.common.mybatis.core.domain.BaseEntity;
import org.dromara.common.core.validate.AddGroup;
import org.dromara.common.core.validate.EditGroup;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;
import lombok.EqualsAndHashCode;
import jakarta.validation.constraints.*;

/**
 * 物料特征模板业务对象 manu_material_chara_temp
 *
 * @author Bin Liu
 * @date 2024-11-21
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = ManuMaterialCharaTemp.class, reverseConvertGenerate = false)
public class ManuMaterialCharaTempBo extends BaseEntity {

    /**
     * 主键
     */
    @NotNull(message = "主键不能为空", groups = { EditGroup.class })
    private Long id;

    /**
     * 类别id
     */
    @NotNull(message = "类别id不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long categoryId;

    /**
     * 简述
     */
    @NotBlank(message = "简述不能为空", groups = { AddGroup.class, EditGroup.class })
    private String description;

    /**
     * 数据类别
     */
    @NotBlank(message = "数据类别不能为空", groups = { AddGroup.class, EditGroup.class })
    private String dataCategory;

    /**
     * 是否允许为孔
     */
    @NotNull(message = "是否允许为孔不能为空", groups = { AddGroup.class, EditGroup.class })
    private Integer isNull;


}
